{% extends "adibilisadminBundle::layout.html.twig" %}
 
{% block title %}
  Détails page - {{ parent() }}
{% endblock %}

{% block adibilisadmin_body %}

{% if app.session.hasFlash('info') %}
        <div class="alert alert-success">
            {{ app.session.flash('info') }}
        </div>
{% endif %}



      {% if app.request.locale == 'fr' %}
            {{ entity.content | raw }}
      {% endif %}


      {% if app.request.locale == 'en' %}
            {{ entity.contenten | raw }}
      {% endif %}


      {% if app.request.locale == 'de' %}
            {{ entity.contentde | raw }}
      {% endif %}



{% if is_granted('ROLE_ADMIN') %}
    <hr />





        <a href="{{ path('page_edit', {'id': entity.id}) }}" class="btn">
      <i class="icon-edit"></i>
      Modifier la page
    </a>
    </br></br>

        <form action="{{ path('page_delete', { 'id': entity.id }) }}" method="post">
            {{ form_widget(delete_form) }}
            <button type="submit" class="btn btn-danger">Supprimer</button>
        </form>
{% endif %}
{% endblock %}